// 节点组件统一导出
export { default as StartNodeCard } from './StartNodeCard.vue'
export { default as LoopNodeCard } from './LoopNodeCard.vue'
export { default as AINodeCard } from './AINodeCard.vue'
export { default as KnowledgeBaseNodeCard } from './KnowledgeBaseNodeCard.vue'
export { default as SearchEngineNodeCard } from './SearchEngineNodeCard.vue'
export { default as HttpRequestNodeCard } from './HttpRequestNodeCard.vue'
export { default as DynamicCodeNodeCard } from './DynamicCodeNodeCard.vue'
export { default as ContentTemplateNodeCard } from './ContentTemplateNodeCard.vue'
export { default as FileExtractNodeCard } from './FileExtractNodeCard.vue'
export { default as FileGenerateNodeCard } from './FileGenerateNodeCard.vue'
export { default as SQLQueryNodeCard } from './SQLQueryNodeCard.vue'
export { default as PluginNodeCard } from './PluginNodeCard.vue'
export { default as EndNodeCard } from './EndNodeCard.vue'

// 节点类型映射
export const NODE_TYPES = {
  start: 'StartNodeCard',
  loop: 'LoopNodeCard',
  ai: 'AINodeCard',
  knowledge: 'KnowledgeBaseNodeCard',
  search: 'SearchEngineNodeCard',
  http: 'HttpRequestNodeCard',
  code: 'DynamicCodeNodeCard',
  template: 'ContentTemplateNodeCard',
  extract: 'FileExtractNodeCard',
  generate: 'FileGenerateNodeCard',
  sql: 'SQLQueryNodeCard',
  plugin: 'PluginNodeCard',
  end: 'EndNodeCard'
}

// 节点配置信息
export const NODE_CONFIG = {
  start: {
    name: '开始节点',
    desc: '开始定义输入参数',
    icon: 'star',
    color: '#409eff'
  },
  loop: {
    name: '循环节点',
    desc: '循环执行指定逻辑',
    icon: 'switch',
    color: '#ff9800'
  },
  ai: {
    name: '大模型节点',
    desc: '调用AI大模型进行智能处理',
    icon: 'ai-assistant',
    color: '#4caf50'
  },
  knowledge: {
    name: '知识库节点',
    desc: '从知识库中检索相关信息',
    icon: 'knowledge-base',
    color: '#2196f3'
  },
  search: {
    name: '搜索引擎节点',
    desc: '调用搜索引擎获取实时信息',
    icon: 'search',
    color: '#ffc107'
  },
  http: {
    name: 'Http请求节点',
    desc: '发送HTTP请求获取数据',
    icon: 'link',
    color: '#00bcd4'
  },
  code: {
    name: '动态代码节点',
    desc: '执行自定义JavaScript代码',
    icon: 'code',
    color: '#9c27b0'
  },
  template: {
    name: '内容模板节点',
    desc: '使用模板生成格式化内容',
    icon: 'form',
    color: '#4caf50'
  },
  extract: {
    name: '文件内容提取节点',
    desc: '从文件中提取文本内容',
    icon: 'upload',
    color: '#2196f3'
  },
  generate: {
    name: '文件生成节点',
    desc: '根据内容生成文件',
    icon: 'zip',
    color: '#4caf50'
  },
  sql: {
    name: 'SQL查询节点',
    desc: '执行SQL查询获取数据库数据',
    icon: 'server',
    color: '#00bcd4'
  },
  plugin: {
    name: '插件节点',
    desc: '调用第三方插件扩展功能',
    icon: 'tool',
    color: '#ff9800'
  },
  end: {
    name: '结束节点',
    desc: '工作流执行结束，返回结果',
    icon: 'checkbox',
    color: '#f44336'
  }
} 